LassoScript Utility
Basics Browse Detail

[Thread_Event->Signal]

Tag Link [Thread_Event->Signal] Category Threads
Type Member Source Available No
Support Preferred Version 6.0
Change Unchanged Data Source Any
Output Type None Security Tag
Implementation LCAPI Sets Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0

Description

Allows one process which is waiting for the [Thread_Event] signal to continue.

A thread can wait for a signal using [Thread_Event->Wait] with an optional timeout value. A thread event can be signaled using [Thread_Event->Signal] to allow one thread to proceed or [Thread_Event->SignalAll] to all threads waiting for a signal to proceed.

Note: The use of thread tools is entirely voluntary. There is nothing in Lasso that prevents access to the same shared resource, but the diligent use of the thread tools will ensure predictable results.

Syntax

[Global: 'mySignal' = (Thread_Event)]

[if: $mySignal->(Wait: 1000)]
...
[/If]

[$mySignal->Signal]

[$mySignal->SignalAll]

Parameters

No Parameters Required.

Examples

See the Lasso 8 Language Guide for examples of how to use this tag.